package com.cdut.logistics.service.interf.system;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.cdut.logistics.model.dao.datacentre.Dict;
import com.cdut.logistics.model.entity.system.Authority;
/**
 * 
 * @ClassName: AuthorityService  
 * @Description: TODO(AuthorityService接口类)  
 * @author lxh
 * @date 2018年1月28日 下午2:36:04
 */
public interface AuthorityService {
	/**
	 * 
	 * @Title: addAuthority  
	 * @Description: TODO(增加权限方法接口)
	 * @author lxh
	 * @param id
	 * @param name
	 * @param url
	 * @param is_use
	 * @param active
	 * @return
	 * @throws
	 */
	boolean addAuthority(String name,String url,String is_use,String active,Date created);
	/**
	 * 
	 * @Title: deleteAuthority  
	 * @Description: TODO(删除权限方法接口)
	 * @author lxh
	 * @param id
	 * @return
	 * @throws
	 */
	boolean deleteAuthority(String id);
	/**
	 * 
	 * @Title: updateAuthority  
	 * @Description: TODO(修改权限方法接口)
	 * @author lxh
	 * @param id
	 * @param name
	 * @param url
	 * @return
	 * @throws
	 */
	boolean updateAuthority(String id,String name,String url,Date updated);
	/**
	 * 
	 * @Title: queryAuthority  
	 * @Description: TODO(查询权限信息方法接口)
	 * @author lxh
	 * @param id
	 * @return
	 * @throws
	 */
	Authority queryAuthorityById(String id);
	
	List<Authority> queryAllAuthority();
	Map<String, Integer> queryIfAuthority(int authority_id);

	
}
